﻿@model Auction_Intranet.Models.RoomModel

@{
    ViewBag.Title = "DeleteRoom";
}

<div class="admin-rooms-delete">

<h2>Delete Room</h2>

<h3>Are you sure you want to delete this room?</h3>
<fieldset>
    <legend>@Model.room.Name</legend>

    <div class="display-label">Location</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.room.Location)
    </div>

    <div class="display-label">Capacity</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.room.Capacity)
    </div>

    <div class="display-label">Size</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.room.Size)
    </div>

    <div class="display-label">Amenities</div>
    <div class="display-field">
        <ul>
            @foreach (var item in Model.amenities)
            { 
                <li>@item.Amenity.Name</li>
            }
        </ul>
    </div>

    <div class="display-label">Pictures</div>
    <div class="display-field">
        <ul class="picture-list">
            @foreach (var pic in Model.pictures)
            {                     
                <li class="picture-item">                        
                    <img alt="Room picture" src="@Url.Content("~/Content/Photos/Rooms/Thumb/" + pic.Id + ".jpg")"/>
                </li>
            }
        </ul>        
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back", "Rooms")
    </p>
}
</div>